package com.hbrj.mapper;

import com.hbrj.entity.Student;
import com.hbrj.entity.StudentExample;
import java.util.List;

import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Student row);

    int insertSelective(Student row);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") Student row, @Param("example") StudentExample example);

    int updateByExample(@Param("row") Student row, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student row);

    int updateByPrimaryKey(Student row);

    Student selectByName(@Param("name") String name);

    int updateByGrade(@Param("grade")String grade,@Param("name")String name);

    int deleteByName(@Param("name") String name);
    List<User> selectAll();
}